<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<html>
<head>
<%@ include file="common.jsp" %>
<link type="text/css" rel="stylesheet" href="<%=rootPath %>/css/manage/selectResult.css"/>
<title>管理员信箱</title>
</head>

<body>
    <jsp:include page="./menu.jsp"></jsp:include>
    <div id="body">
        <div id="navTop">
            <div class="bg_left"></div>
            <div class="bg_main"></div>
            <div class="bg_right"></div>
        </div>
        <div id="userManager">
            <table width="100%" cellpadding="0" cellspacing="0" border="0" class="maintable">
                <tr>
                    <th colspan="6">
                                <table class="admintable" width="100%" style="margin:auto;">
                                    <c:forEach items="${ret.rows}" var="managerMail" varStatus="s">
                                        <tr style="background-color: <c:if test="${s.index%2==0 }">#F7F4D8</c:if><c:if test="${s.index%2!=0 }">#FFF</c:if>">
                                            <td>${managerMail.sendName}</td>
                                            <td><a style="color:black;text-decoration: none;" href="<%=rootPath%>/managers/${managerMail.id}/showMailContent.mge">${managerMail.mailContent}</a></td>
                                            <td>${managerMail.createTime}</td>
                                        </tr>
                                    </c:forEach>
                                </table>
                    </th>
                </tr>
                <tr>
                    <td>
                    <form id="pageForm" name="pageForm" action="" method="post">
                        <input id="pageNo" type="hidden" name="pageNo" value="${ret.pageNo}"/>
                        <input id="pageSize" type="hidden" name="pageSize" value="${ret.pageSize}"/>
                        <br />
                        <a style="margin-left:350px; color:#000;text-decoration:none;" href="#" onclick=upPageChange()>上一页</a>   <a style="margin-left:160px;text-decoration:none;color:#000;" href="#" onclick=downPageChange()>下一页</a>
                    </form>
                    <script type="text/javascript">
                        function upPageChange(){
                            var pageNo = document.getElementById("pageNo").value;
                            document.getElementById("pageNo").value= pageNo-1;
                            pageForm.action=<%=rootPath %> + "/managers/userLogCount.mge";
                            pageForm.target="_self";
                            pageForm.submit();
                        }
                        function downPageChange(){
                            var pageNo = document.getElementById("pageNo").value;
                            document.getElementById("pageNo").value= parseInt(pageNo)+1;
                            pageForm.action=<%=rootPath %> + "/managers/userLogCount.mge";
                            pageForm.target="_self";
                            pageForm.submit();
                        }
                    </script>
                    </td>
                </tr>
                </table>
        </div>
    </div>
    <jsp:include page="./footer.jsp"></jsp:include>
</body>
</html>
